/**
 * Framework for batch testing user profile models
 * Final project by Sergey Nepomnyachiy and Julia Polchin
 * Supervisor: Tsvi Kuflik
 *
 */
package core.generators;

/**
 * 
 * Generates vector of Integer numbers distributed uniformly in given range
 * 
 * @author Sergey&Julia
 * 
 */
public class IntRangeGenerator extends FunctionGenerator<Integer> {

	/**
	 * Integers range generator constructor
	 * 
	 * @param left
	 *            the minimum in range
	 * @param right
	 *            the maximum in range
	 */
	@SuppressWarnings("boxing")
	public IntRangeGenerator(int left, int right) {
		super(left);
		generate(right - left);
	}

	/**
	 * Overriding generation function - basically a +1 case
	 */
	@SuppressWarnings("boxing")
	@Override
	Integer function(int index) {
		return this.start + index;
	}

}
